package com.crm.dao.mapper.customMapper.csd;

import com.crm.model.entity.csd.customerManager.CustomerServiceWorkLog;
import com.crm.model.vo.csd.customerManager.CustomerServiceWorkLogVO;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * @author yincuimei
 * @Date 2021/8/18 15:06
 */
public interface CustomerServiceWorkLogCustomMapper {

    /**
     * (客服部)批量新增工作日志
     * @param customerServiceWorkLogList --工作日志集合
     * @author yincuimei
     * @return
     */
    int insertWorkLogBatch(List<CustomerServiceWorkLog> customerServiceWorkLogList);

    /**
     * (客服部)工作日志列表
     * @param customerId  --客户ID
     * @param sortOrder   --排序
     * @author yincuimei
     * @return
     */
    List<CustomerServiceWorkLogVO> selectWorkLogVOList(@Param("customerId") String customerId, @Param("sortOrder") String sortOrder);

    /**
     * (客服部)工作日志--查看
     * @param workLogId --主键
     * @return
     */
    CustomerServiceWorkLogVO selectWorkLogVOById(@Param("workLogId") String workLogId);
}
